#include "BodyDocument.h"
#include "BodyFileFormat.h"

BodyDocument::BodyDocument() {
	m_bodyEntity = new BodyEntity( 0.0f, 0.0f, 0.0f, 0.0f );
}

BodyDocument::BodyDocument( const std::string& filePath ) {
	BodyFileFormat format;
	m_bodyEntity = format.Load( filePath );
}

BodyDocument::~BodyDocument() {
	delete m_bodyEntity;
}

void BodyDocument::Save( const std::string& filePath ) const {
	BodyFileFormat format;
	format.Save( m_bodyEntity, filePath );
}

